home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils~1 / src / file31s.zoo / file3.1 / makefile.in < prev    next >
Encoding:
Makefile  |  1991-10-17  |  5.0 KB  |  139 lines

  1. # Master Makefile for the GNU file utilities.
  2. # Copyright (C) 1986, 1988-1991 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2, or (at your option)
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. SHELL = /bin/sh
  19.  
  20. #### Start of system configuration section. ####
  21.  
  22. srcdir = @srcdir@
  23. @VPATH@
  24.  
  25. # If you use gcc, you should either run the fixincludes script that
  26. # comes with it or else use gcc with the -traditional option.  Otherwise
  27. # ioctl calls will be compiled incorrectly on some systems.
  28. CC = @CC@
  29. AR = ar
  30. # Set RANLIB = echo if your system doesn't have or need ranlib.
  31. RANLIB = @RANLIB@
  32.  
  33. # Things you might add to DEFS:
  34. # -DSTDC_HEADERS    If you have ANSI C headers and libraries.
  35. # -DPOSIX        If you have POSIX.1 headers and libraries.
  36. #            Also need to define -DDIRENT.
  37. # -DUSG            If you have System V/ANSI C string and
  38. #            memory functions and headers, ndir.h,
  39. #            sys/sysmacros.h, no sys/times.h, fcntl.h,
  40. #            getcwd.
  41. # -DSIGTYPE=int        If your signal handlers return int, not void.
  42. # -DDIRENT        If you have dirent.h.
  43. # -DSYSNDIR        Old Xenix systems (selects sys/ndir.h).
  44. # -DVOID_CLOSEDIR    If your closedir function returns void, not int.
  45. # -DMAJOR_IN_MKDEV    If major, minor, makedev are defined in sys/mkdev.h.
  46. # -DINT_16_BITS        If sizeof long > sizeof int.
  47. # -DVPRINTF_MISSING    If you lack vprintf function (but have _doprnt).
  48. # -DDOPRNT_MISSING    If you lack _doprnt function.  Also need to define
  49. #            -DVPRINTF_MISSING.
  50. # -DMKFIFO_MISSING    If you lack mkfifo system call, but have FIFOs.
  51. # -DFTRUNCATE_MISSING    If you lack ftruncate system call.
  52. # -DFCHMOD_MISSING    If you lack fchmod system call.
  53. # -DMVDIR=\"$(libdir)/mvdir\"
  54. #            If you lack rename system call.
  55. # -DST_BLOCKS_MISSING    If your `struct stat' lacks st_blocks and st_blksize.
  56. # -DUTIME_NULL_MISSING    If your utime system call does not use the
  57. #            current time when passed a null time pointer.
  58. # -DNEED_TZSET        If you lack ftime system call and
  59. #            need to call tzset to set the timezone.
  60. # Define zero or one of the following:
  61. # If no FS_* is defined, df will not link.
  62. # -DFS_MNTENT        If you use 4.3BSD getmntent to get filesystem info.
  63. # -DFS_GETMNT        If you use Ultrix getmnt to get filesystem info.
  64. # -DFS_STATFS        If you use 4.4BSD statfs to get filesystem info.
  65. # -DFS_USG_STATFS    If you use SVR3.2 statfs to get filesystem info.
  66. # -DFS_STATVFS        If you use SVR4 statvfs to get filesystem info.
  67.  
  68. DEFS = @DEFS@
  69. LIBS = @LIBS@
  70. LIBPROGS = @LIBPROGS@
  71.  
  72. CDEBUG = -g
  73. CFLAGS = $(CDEBUG) -I. -I../lib -I$(srcdir)/lib $(DEFS)
  74. LDFLAGS = -g
  75.  
  76. prefix = /usr/local
  77.  
  78. # Where to install the executables.
  79. bindir = $(prefix)/gnubin
  80.  
  81. # Where to put mvdir, if your system lacks the rename system call.
  82. libdir = $(prefix)/lib
  83.  
  84. # Where to put the manual pages.
  85. mandir = $(prefix)/man/man1
  86. # Extension (not including `.') for the installed manual page filenames.
  87. manext = 1
  88.  
  89. #### End of system configuration section. ####
  90.  
  91. MDEFINES = bindir='$(bindir)' libdir='$(libdir)' mandir='$(mandir)' \
  92. manext='$(manext)' LIBS='$(LIBS)' LIBPROGS='$(LIBPROGS)' \
  93. AR='$(AR)' RANLIB='$(RANLIB)' \
  94. CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)' CC='$(CC)'
  95.  
  96. DISTFILES = COPYING COPYING.LIB ChangeLog Makefile.in README configure
  97.  
  98. # Subdirectories to run make in for the primary targets.
  99. SUBDIRS = lib src man
  100.  
  101. all:
  102.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  103. .PHONY: all
  104.  
  105. install:
  106.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  107. .PHONY: install
  108.  
  109. tags:
  110.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  111. .PHONY: tags
  112.  
  113. TAGS:
  114.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  115. .PHONY: TAGS
  116.  
  117. clean:
  118.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  119. .PHONY: clean
  120.  
  121. distclean:
  122.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  123.     rm -f Makefile config.status
  124. .PHONY: distclean
  125.  
  126. realclean:
  127.     for dir in $(SUBDIRS); do echo making $@ in $$dir; cd $$dir; $(MAKE) $(MDEFINES) $@; cd ..; done
  128.     rm -f Makefile config.status
  129. .PHONY: realclean
  130.  
  131. dist:
  132.     echo fileutils-`sed -e '/version_string/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q src/version.c` > .fname
  133.     rm -rf `cat .fname`
  134.     mkdir `cat .fname`
  135.     ln $(DISTFILES) `cat .fname`
  136.     for dir in $(SUBDIRS); do mkdir `cat .fname`/$$dir; cd $$dir; $(MAKE) $@; cd ..; done
  137.     tar chZf `cat .fname`.tar.Z `cat .fname`
  138.     rm -rf `cat .fname` .fname
  139.